<?php
// +----------------------------------------------------------------------
// | YUEGONGBAO [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2017 http://www.yuegongbaofund.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: 老猫 <yuegongbaofund@126.com>
// +----------------------------------------------------------------------
namespace app\portal\controller;

use cmf\controller\HomeBaseController;
use app\portal\service\PostService;

use dragon\ContactModel;

class ContactController extends HomeBaseController
{
    public function message()
    {
        if(!$this->request->isPost()) return $this->fetch("/contact");
		
        $data = $this->request->post();
		
		(new ContactModel())->insert($data);
		
		$this->success('提交成功');
    }

}
